package com.lovo.project.enums;

import lombok.Getter;

/**
 * @title 用户状态枚举
 * @author: luo
 * @date: 2020/11/3 10:28
 */
@Getter
public enum  UserCodeEnum {
    /**用户登录用户名或密码错误*/
    USER_LOGIN_ERROR(5101,"用户名或密码错误"),
    /**注册用户异常*/
    USER_REGISTER_ERROR(2101,"注册用户异常"),
    /**查询用户异常*/
    USER_FIND_ERROR(5102,"查询用户异常"),
    /**修改用户异常*/
    USER_UPDATE_ERROR(4101,"修改用户异常"),
    /**删除用户异常*/
    USER_DELETE_ERROR(3101,"删除用户异常"),
    /**未知异常*/
    USER_UNKNOWN_ERROR(9999,"发生未知异常");

    /**枚举状态码*/
    private Integer code;
    /**状态信息*/
    private String msg;

    UserCodeEnum(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }


}
